package com.sgcc.pda.frme.protocol.ws.sendbean;

import android.text.TextUtils;

/**
 * 描 述：秘钥协商
 * 作 者：王贵重
 * 时 间： 2020-03-27 15:26
 * 邮 箱：wanggz@bjhzwq.com
 * 版 本：1.0
 * 版 权：Copyright (c) 2020 remarkables-united.Co.Ltd. All rights reserved.
 */
public class SecretKeyParams {
    private String s1;
    private String mac1;

    public String getS1() {
        return s1;
    }

    public void setS1(String s1) {
        this.s1 = s1;
    }

    public String getMac1() {
        return mac1;
    }

    public void setMac1(String mac1) {
        this.mac1 = mac1;
    }

    /**
     * 下发的sim检查参转化为字符串
     *
     * @return
     */
    public String toString() {
        StringBuilder sb = new StringBuilder();
        if (TextUtils.isEmpty(s1)){
            return "";
        }
        sb.append(s1);
        if (TextUtils.isEmpty(mac1)){
            return "";
        }
        sb.append(mac1);
        return sb.toString();
    }
}
